package com.vhans.db.model.dto.correlation;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 总体关联DTO
 *
 * @author vhans
 * @date 2023-05-20
 */
@Data
@ApiModel(description = "总体关联DTO")
public class CorrelationDTO {

    /** 关联表ID */
    @ApiModelProperty(value = "关联表ID")
    private Integer id;

    /** 基本ID */
    @NotNull(message = "基本ID不能为空")
    @ApiModelProperty(value = "基本ID")
    private Integer baseId;

    /** 实例ID */
    @NotNull(message = "实例ID不能为空")
    @ApiModelProperty(value = "实例ID")
    private Integer exampleId;

    /** 镜像ID */
    @NotNull(message = "镜像ID不能为空")
    @ApiModelProperty(value = "镜像ID")
    private Integer imageId;

    /** 存储IDs */
    @NotBlank(message = "存储IDs不能为空")
    @ApiModelProperty(value = "存储IDs")
    private String storageIds;

    /** 带宽和安全组ID */
    @NotNull(message = "带宽和安全组ID不能为空")
    @ApiModelProperty(value = "带宽和安全组ID")
    private Integer bandwidthGroupsId;

    /** 管理ID */
    @NotNull(message = "管理ID不能为空")
    @ApiModelProperty(value = "管理ID")
    private Integer managementId;

}
